package com.ysstech.valuation.service;

import java.util.Map;

import com.ysstech.valuation.entity.BondFaceMoneyInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 债券票面金额信息表 服务类
 * </p>
 *
 * @author lishuangliang
 * @since 2021-08-11
 */
public interface BondFaceMoneyInfoService extends IService<BondFaceMoneyInfo> {
    /**
     * 查询一个时间点所有债券的票面价格
     *
     * @param bondFaceMoneyInfo
     * @return
     * @throws Exception
     */
    public Map<String, BondFaceMoneyInfo> queryBondFaceMoneyInfo(BondFaceMoneyInfo bondFaceMoneyInfo) throws Exception;

    /**
     * 缓存中获取一个债券的当前时间的票面价格
     *
     * @param bondFaceMoneyInfo
     * @return
     * @throws Exception
     */
    public BondFaceMoneyInfo queryBondFaceMoneyInfoCache(BondFaceMoneyInfo bondFaceMoneyInfo) throws Exception;
}
